﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace Authorization
{
    [DataContract(Name = "AuthorizationResponseWithCursor")]
    //[MessageContract]
    public class AuthorizationResponseWithCursor<T>
    {

        [DataMember]
        //[MessageHeader(MustUnderstand = true)]
        public string Cursor { get; set; }

        [DataMember]
        //[MessageBodyMember]
        public T Value { get; set; }

            public AuthorizationResponseWithCursor(T value, string cursor)
            {
                this.Value = value;
                this.Cursor = cursor;
            }

    }
}
